package com.ljz.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

@Data
@AllArgsConstructor
@NoArgsConstructor
@ApiModel("订单项")
@TableName(value = "order_item")
public class OrderItem {
    @TableId(value = "order_item_id",type = IdType.AUTO)
    private Long order_item_id;
    private Long shop_id;
    private Long order_id;
    private Long category_id;
    private Long spu_id;
    private Long sku_id;
    private Long user_id;
    private Integer count;
    private String spu_name;
    private String sku_name;
    private String pic;
    private Integer delivery_type;
    private Date shop_cart_time;
    private Long price;
    private Long spu_total_amount;
}
